import request from "@/utils/request";

// 客户列表
export function listEmployee(query) {
  return request({
    url: "/mall/gh/employee/list",
    method: "get",
    params: query,
  });
}
//所属客户列表
export function listAllCustomer(query) {
  return request({
    url: "/mall/gh/customer/allList",
    method: "get",
    params: query,
  });
}
//添加员工
export function addEmployee(data) {
  return request({
    url: "/mall/gh/employee",
    method: "post",
    data,
  });
}
//查询客户
export function queryEmployee(id) {
  return request({
    url: "/mall/gh/employee/" + id,
    method: "get",
  });
}
//修改
export function editEmployee(data) {
  return request({
    url: "/mall/gh/employee",
    method: "put",
    data,
  });
}
//删除
export function removeEmployee(id) {
  return request({
    url: "/mall/gh/employee/" + id,
    method: "delete",
  });
}
